<?php
    // global $search_content;
    session_start();
    $search_content=$_POST['s'];
    $_SESSION['val']=$search_content;
    // $search_content='知明1-101';
    // $n=strlen($search_content)/3;
    // echo $n;
    // $sub=mb_substr($search_content,1,'utf-8');
    // $sub=substr($search_content,6);
    // echo $sub;
    if(strlen($search_content)/3==2){
        if($search_content=="知明"){
            header('Location: zm.php');
        }
        elseif($search_content=="笃行"){
            header('Location: xd.php');
        }
        elseif($search_content=="立诚"){
            header('Location: lc.php');
        }
        elseif($search_content=="致广"){
            header('Location: zg.php');
        }
        else{
        	header('Location: recommended.php');
        }
    }
    elseif(strlen($search_content)==0){
        header('Location: recommended.php');
    }
    else{
        // echo "<a href='singleClassroom.php?arg=$search_content'></a>";
        header('Location: singleClassroom.php');
    }
?>